package data;

public class PartitionMatrixSimpleImpl implements PartitionMatrixInterface {
	private int numberOfData = 10;
	private int dimensionOfData = 2;
	private int numberOfCluster = 10;
	private double[][] partitionMatrix = null;

	public PartitionMatrixSimpleImpl() {
		this.partitionMatrix = new double[numberOfCluster][numberOfData];
	}

	public double getValue(int indexOfCluster, int indexOfData) {
		return this.partitionMatrix[indexOfCluster][indexOfData];
	}

	public void setValue(int indexOfCluster, int indexOfData, double newValue) {
		this.partitionMatrix[indexOfCluster][indexOfData] = newValue;
	}

	public double[] getValue(int indexOfCluster) {
		return this.partitionMatrix[indexOfCluster];
	}
	
	public void show(){
		for (int i=0;i<numberOfCluster;i++){
			for (int j=0; j<numberOfData;j++){
				System.out.print(this.partitionMatrix[i][j]+"\t");
			}
			System.out.println();
		}
	}
}
